<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>合众人寿公益平台客户管理系统</title>
		 <meta http-equiv="pragma" content="no-cache">
			<meta http-equiv="cache-control" content="no-cache">
			<meta http-equiv="expires" content="0">    
			<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
			<meta http-equiv="description" content="This is my page">
		<SCRIPT type="text/javascript">
	      var GB_ROOT_DIR = "<%=request.getContextPath()%>/html/skin/";
        </SCRIPT>	
		<style>
body,ul,ol,dl,dd,p,h1,h2,h3,h4,h5,h6,form,input,textarea,select,td,th {
	margin: 0;
	padding: 0;
	font-family: "宋体", Arial, Helvetica, sans-serif;
}

li {
	list-style: none;
}

input {
	background: none;
}

.clear {
	zoom: 1;
}

.clear:after {
	content: "";
	display: block;
	clear: both;
}

</style>
		<link href="<%= request.getContextPath() %>/html/css/Main.css"
			rel="stylesheet" type="text/css" />
		<link href="<%=request.getContextPath()%>/html/css/gb_styles.css"
			rel="stylesheet" type="text/css"/>
		<script src="<%=request.getContextPath()%>/html/js/Calendar.js"
			charset="utf-8"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/html/js/AJS.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/html/js/AJS_fx.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/html/js/gb_scripts.js"></script>
		
		<link href="<%= request.getContextPath() %>/html/css/tree.css"
			rel="stylesheet" type="text/css" />
		<script type="text/javascript"
			src="<%= request.getContextPath() %>/html/js/PopupCalendar.js"></script>
		<script type="text/javascript"
			src="<%= request.getContextPath() %>/html/js/prototype.js"></script>
		<script type="text/javascript"
			src="<%= request.getContextPath() %>/html/js/buffalo.js"></script>
		<script type="text/javascript"
			src="<%= request.getContextPath() %>/html/js/pims.js"></script>
		<script type="text/javascript"
			src="<%= request.getContextPath() %>/html/js/xtree.js"></script>
		<script type="text/javascript"
			src="<%= request.getContextPath() %>/html/js/xloadtree.js"></script>
		
		<!-- Dwr Js -->
		<script
			src="<%= request.getContextPath() %>/dwr/interface/organizationAction.js"
			type="text/javascript"></script>
		<script src="<%= request.getContextPath() %>/dwr/engine.js"
			type="text/javascript"></script>
		<script src="<%= request.getContextPath() %>/dwr/util.js"
			type="text/javascript"></script>
		<link href="<%=request.getContextPath()%>/html/js/My97DatePicker/skin/WdatePicker.css"
			rel="stylesheet" type="text/css" />
		<script src="<%=request.getContextPath()%>/html/js/My97DatePicker/WdatePicker.js"
			charset="utf-8"></script>
		
	</head>
	 
	<body>
		<div class="container">
			<div class="wrap clear">
				<div class="sub_wp_right">
					<div class="rt_tt">
						<h3 class="tittle"><s:if test="memberEnjoyId == null || ''.equals(memberEnjoyId)">爱心之旅活动</s:if>
							<s:else>会员专项活动</s:else>/会员/批量导入会员验证</h3>
					</div>
					<div class="ct" style="overflow:auto;">
						<div class="jieguo">
							<form action="<%= request.getContextPath() %>/subMember/verifySubMembers.do">
							<table border="0" cellpadding="0" cellspacing="0" class="listArea" width="100%">
							<thead>
								<tr>
									<th colspan="2">选择</th>
									<th>分公司</th>
									<th>中支</th>
									<th>姓名</th>
									<th>性别</th>
									<th>出生日期</th>
									<th>会员类型</th>
									<th>身份证号</th>
									<th>手机号码</th>
									<th>电子邮件</th>
									<th>创建时间</th>
								</tr>
							</thead>
							<tbody id="bg">
									<s:iterator value="verifyVOs" var="verifyVO" status="status">
										<s:if test="#status.odd == true">
										<tr class="rowNormal" onmouseover="this.className='rowChecked'" onmouseout="this.className='rowNormal'">
										</s:if>
										<s:else>
										<tr class="rowAlternate" onmouseover="this.className='rowChecked'" onmouseout="this.className='rowAlternate'">
										</s:else>
											<td colspan="2">
												<s:if test="#verifyVO.maySameMembers != null && #verifyVO.maySameMembers.size() > 0">
													<img src="<%= request.getContextPath() %>/html/images/branch_0.png"/>
												</s:if>
											</td>
										    <td align="center">${verifyVO.subMember.subComName}</td>
											<td align="center">${verifyVO.subMember.subCityName}</td>
											<td align="center">${verifyVO.subMember.sub_memberName}</td>
											<td align="center">${verifyVO.subMember.sub_gender}</td>
											<td align="center">
												<s:if test="#verifyVO.subMember.sub_birthday== null || #verifyVO.subMember.sub_birthday.length() == 0">&nbsp;</s:if>
												${verifyVO.subMember.sub_birthday }
											</td>
											<td align="center">${verifyVO.subMember.sub_memberType}</td>
											<td align="center">${verifyVO.subMember.sub_idCard }</td>
											<td align="center">${verifyVO.subMember.sub_cellPhone }</td>
											<td align="center">
												<s:if test="#verifyVO.subMember.sub_email == null || #verifyVO.subMember.sub_email.length() == 0">&nbsp;</s:if>
												${verifyVO.subMember.sub_email}
											</td>
											<td align="center">
												<s:date name="#verifyVO.subMember.sub_createDate" format="yyyy-MM-dd HH:mm:ss"/>
											</td>
										</tr>
										<s:if test="#verifyVO.maySameMembers != null">
											<s:iterator value="#verifyVO.maySameMembers" var="sameMember" status="sameStatus">
											<tr>
												<td align="center" ><img src="<%= request.getContextPath() %>/html/images/branch_<s:if test='#sameStatus.last'>2</s:if><s:else>1</s:else>.png"/></td>
												<td align="center" style="border-left:2px solid red;<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													<input onchange="singleSelected(this)" name="sameMemberMap[${verifyVO.index}]" type="checkbox" value="${sameMember.id }"/>
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													${sameMember.subComName}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													${sameMember.subCityName}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													${sameMember.memberName}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													${sameMember.gender}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													<s:if test="#sameMember.birthday== null || #sameMember.birthday.length() == 0">&nbsp;</s:if>
													${sameMember.birthday}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													${sameMember.memberType}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													${sameMember.idCard}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													${sameMember.cellPhone}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>">
													<s:if test="#sameMember.email == null || #sameMember.email.length() == 0">&nbsp;</s:if>
													${sameMember.email}&nbsp;
												</td>
												<td align="center" style="<s:if test="#sameStatus.first">border-top:2px solid red;</s:if><s:if test="#sameStatus.last">border-bottom:2px solid red;</s:if>border-right:2px solid red;">
													<s:date name="#sameMember.createDate" format="yyyy-MM-dd HH:mm:ss"/>&nbsp;
												</td>
											</tr>
											</s:iterator>
										</s:if>
									</s:iterator>
							</tbody>
							</table>
							<input type="hidden" value="${verifySequence}" name="verifySequence">
							<input type="hidden" value="${journeyLoveId}" name="journeyLoveId">
							<input type="hidden" value="${memberEnjoyId}" name="memberEnjoyId">
							<div class="btn">
								<input type="button" value="返回"
										onclick="javascript :history.back(-1);" />
								<input type="submit" value="确定" />
							</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			function singleSelected(checkbox){
				if(checkbox.checked){
				 	var objCheckBox = document.getElementsByName(checkbox.name);
					for(var i = 0 ; i < objCheckBox.length ; i++){
						if(objCheckBox[i] != checkbox){
							objCheckBox[i].checked = false;
						}
					}
				}
			}
		</script>
	</body>
</html>
